﻿using Microsoft.SharePoint.Client;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Albatross.SharePoint.Explorer.ViewModels {
	public class TimeZoneViewModel : ClientObjectViewModel {
		public TimeZoneViewModel(ClientContext context, string name, TimeZone clientObject) : base(context, name, clientObject) {
		}
		public TimeZone TimeZone { get { return (TimeZone)ClientObject; } }
		public override string GetTreeItemTitle() {
			if (Name == string.Empty) {
				return TimeZone.Description;
			} else {
				return Name;
			}
		}
		public override string GetContentTitle() {
			return string.Format("TimeZone: {0}", TimeZone.Description);
		}
	}
}
